label: Make attr_list_merge() use sane merging rules
authorBenjamin Otte <otte@redhat.com>
Fri, 6 Jan 2012 04:10:50 +0000 (05:10 +0100)
committerBenjamin Otte <otte@redhat.com>
Fri, 6 Jan 2012 04:23:42 +0000 (05:23 +0100)
commitd6bb8a63aaea0be9ea304a82950da95135863bb1
tree1806f25a2f527d00211034666e6166f54ba0900b
parente78e4d8dd87b1c6943941e953c6cc6e7565ff4ea
label: Make attr_list_merge() use sane merging rules

Instead of "attribute with later start index wins, make sure the
attribute list that is merged from takes precedence. This now gives the
multiple attribute lists we use in the label an order:

1) gtk_label_set_attributes()
  These attributes override everything. It's what the function's there
  for after all.
2) markup of label
  Other user-specified attributes come next.
3) attributes for links
  When we apply custom attributes on parts of the text, we put them
  last. We don't want to mess with what the user does. Also, we change
  color and underline, so we usually have something to show.
gtk/gtklabel.c